package com.tvunetworks.center.device.model.api;

/**
 * @author Etan Yang
 * @create: 2021/10/13 16:04
 */
public enum ProcessResponse {
    /**
     *  SUCCESS
     */
    SUCCESS("0x0","success"),
    /**
     *  PARAMETER_ERROR
     */
    PARAMETER_ERROR("0x80100001","Parameter error"),
    /**
     *  NULL_RECORD
     */
    NULL_RECORD("0x80100002","Null record"),
    /**
     *  EXCEPTION
     */
    EXCEPTION("0x80100003","exception"),
    /**
     *  REQUEST_TIME_OUT
     */
    REQUEST_TIME_OUT("0x80100008","Request time out"),
    /**
     *  NO_LOGIN
     */
    NO_LOGIN("0x80100009","No login"),
    /**
     *  NO_PERMISSION
     */
    NO_PERMISSION("0x80100014","No permission"),
    /**
     *  ALREADY_EXIST
     */
    ALREADY_EXIST("0x80100017","Already exist"),
    /**
     *  NOT_EXIST
     */
    NOT_EXIST("0x80100018","Not exist"),
    /**
     *  CONFLICT
     */
    CONFLICT("0x80100019","conflict"),
    /**
     *  NO_CONNECT
     */
    NO_CONNECT("0x80100020","No connect"),
    /**
     *  PROHIBIT
     */
    PROHIBIT("0x80100021","prohibit"),
    /**
     *  FAILED
     */
    FAILED("0x1","failed"),
    /**
     *  EMAIL_ERROR
     */
    EMAIL_ERROR("0x80100022","Email error"),
    /**
     *  DELETE_FAILURE
     */
    DELETE_FAILURE("0x80100133","metadata delete failure"),
    /**
     *  FD_NO_DISTRIBUTED
     */
    FD_NO_DISTRIBUTED("0x80100100","file download no distributed"),
    /**
     *  FD_NO_IDLE_WORKER
     */
    FD_NO_IDLE_WORKER("0x80100101","file download no idle worker"),
    ;
    
    
     ProcessResponse(String errorCode, String errorInfo) {
        this.errorCode = errorCode;
        this.errorInfo = errorInfo;
    }

    private String errorCode;
    private String errorInfo;
    
    public String getErrorCode() {
        return errorCode;
    }
    
    public String getErrorInfo() {
        return errorInfo;
    }
    
    
}
